<ion-view view-title="联系人信息">
    <ion-content>
        <div class="list">
            <div class="item item-divider">create 方法</div>
            <label class="item item-input">
                <input type="text" placeholder="请输入用户名" ng-model="$ctrl.user.name">
            </label>
            <div class="item padding">
                <button class="button button-block button-positive" ng-click="$ctrl.save()">添加</button>
            </div>
            <div class="item item-divider item-icon-right">
                查询
                <i class="icon ion-search" ng-click="$ctrl.find()"></i>
            </div>
            <label class="item item-input">
                <input type="text" placeholder="名称匹配" ng-model="$ctrl.options.filter">
            </label>
            <ion-toggle ng-model="$ctrl.options.multiple">multiple</ion-toggle>
            <ion-toggle ng-model="$ctrl.options.hasPhoneNumber">hasPhoneNumber</ion-toggle>
            <div class="item item-body">
                <h3>结果: </h3>
                <p ng-bind="$ctrl.findResult | json"></p>
            </div>
            <div class="item item-divider item-icon-right">
                查询
                <i class="icon ion-search" ng-click="$ctrl.pick()"></i>
            </div>
            <div class="item item-body">
                <h3>结果: </h3>
                <p ng-bind="$ctrl.pickResult | json"></p>
            </div>
        </div>
    </ion-content>
</ion-view>